package com.gxa.ssm340.entity.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@Data
public class Coupon implements Serializable {
    private Integer id;
    private String name;
    private String desc;
    private String img;
    private String role;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date collectExp;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date usedExp;
    private Integer inUse;
    private Integer isUse;
}
